home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
uupc.lzh
/
uupc
/
mlib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-16
|
682b
|
41 lines
/*
* mlib.c
*
* Amiga mailer library
*
* Things to do in uu_host
* serial I/O
* directory routines {open,read,close}dir
* prolog/epilog
* system calls
*
* $Id: mlib.c,v 1.2 90/01/16 10:26:48 crash Exp Locker: crash $
*/
#ifndef lint
static char RCSid[] = "$Id: mlib.c,v 1.2 90/01/16 10:26:48 crash Exp Locker: crash $";
#endif /* lint */
#include <stdio.h>
#include "host.h"
#include <sgtty.h>
int get_one()
{
char c;
struct sgttyb stty, sttyo;
ioctl(0, TIOCGETP, &stty);
sttyo = stty;
stty.sg_flags |= RAW;
#ifdef ECHO
stty.sg_flags &= ~ECHO;
#endif /* ECHO */
ioctl(0, TIOCSETP, &stty);
c = fgetc(stdin);
ioctl(0, TIOCSETP, &sttyo);
return( c );
}